package basicas;

import java.util.Collection;

import javax.persistence.*;



@Entity
@PrimaryKeyJoinColumn(name="codigo")
public class Passe extends ObjetoGeral {
	
	@ManyToMany
	@JoinTable(name="passe_atracao", joinColumns=@JoinColumn(name="cod_passe"), inverseJoinColumns=@JoinColumn(name="cod_atracao"))
	private Collection<Atracao> listaAtracoes;
	private String descricao;


	public Collection<Atracao> getListaAtracoes() {
		return listaAtracoes;
	}
	public void setListaAtracoes(Collection<Atracao> listaAtracoes) {
		this.listaAtracoes = listaAtracoes;
	}
	public String getDescricao() {
		return descricao;
	}
	public void setDescricao(String descricao) {
		this.descricao = descricao;
	}
	
	
}
